<template>
  <div>
    <button @click="handleBtn">点击双向修改</button>
    <p>子组件的name: {{name}}</p>
  </div>
</template>
<script>
export default {
  props:['name'],
  methods: {
    handleBtn () {
      this.$emit('update:name', '李四');
    }
  }
}
</script>
